<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.limp.mine.DateTrimmer"%>
<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="jt.classic.system.user.IUser"%>
<%@ page import="jt.classic.system.ISystem"%>
<%
	String context = jt.classic.system.ISystem.getContextPath();
	IUser user = ISystem.getSessionUser(request);
	
	String id = StringTool.checkString(request.getParameter("id"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>领用办公用品</title>
</head>
<jsp:include page="../head.jsp"></jsp:include>
<style>
.objqueryset {
	background-image: url(<%=context%>/app/bgypgl/images/search.gif) !important;
}
.objselect { 
	background-image: url(<%=context%>/app/bgypgl/images/add.png) !important;
}
</style>
<link rel="stylesheet" type="text/css" href="<%=context %>/system/group/css/groupmanage.css" />
<script src="<%=context %>/system/tablequery/js/querylistwindow.js"></script>
<script src="<%=context %>/system/group/js/groupselect.js"></script>
<script src="<%=context %>/resources/common/js/wordbook.js"></script>
<script src="<%=context %>/app/bgypgl/js/ckneu.js"></script>
<script src="<%=context %>/system/tablequery/js/tablehandler.js"></script>
<body onload="javascript:initTable('APP_BGYP_CK', '<%=id %>', 'single' , function(json){initFunc(json);})">
<form id="form1" name="form1" method="post" action="">
<input type="hidden" name="PK_ID" value="">
<input type="hidden" name="CK_USERID" value="<%=user.id() %>">
<input type="hidden" name="CK_USERNAME" value="<%=user.iname() %>">
<input type="hidden" name="CK_DATE" id="CK_DATE" value="<%=DateTrimmer.getYMDHMS() %>">
<input type="hidden" name="BMB_ID" id="BMB_ID" value="">
<input type="hidden" name="BMB_KCNUM" id="BMB_KCNUM" value="">
<input type="hidden" name="FL" id="FL" value="">

<div style="margin-top:15px;margin-left:15px;">
<%if(id.equals("")){%>
<input type="button" class="button0" name="button0"
				value=" 保 存 " onclick="javascript:updateZB('add');" />	
<%}else{%>

<input type="button" class="button0" name="button0"
				value=" 删 除 " onclick="javascript:updateZB('del');" />	
<%} %>	
<input type="button" class="button0" name="button0" value=" 返 回 " onclick="javascript:window.history.back(-1);"/>		
</div>	
<fieldset style="width:800px;margin:15px;">
<legend>办公用品领用登记</legend>
<table class="tab4edit" width="700" align="center">
	<tr>
		<td class="td1" width="150">&nbsp;名称</td>
		<td> <input name="NAME" class="box3" type="text" id="NAME" readonly/> <font color="red"><b>*</b></font>
		<a id="xz" href="javascript:initQueryWindow('bgypselect_cklist', 'PK_ID', 'NAME', function(json){bgyp_bm(json)});">选择</a></td>
	</tr>
	<tr>
		<td class="td1" width="151">&nbsp;分类</td>
		<td>
			<select id="FL_NEW" NAME="FL_NEW" class="box3" style="width:410px;" disabled></select>  
			<font color="red"><b>*</b></font>
		</td>
	</tr>
	<tr>
		<td class="td1" width="152">&nbsp;型号</td>
		<td> <input name="XH" class="box3" type="text" id="XH" readonly/> </td>
	</tr>
	<tr>
		<td class="td1" width="153">&nbsp;单位</td>
		<td> <input name="UNIT" class="box3" type="text" id="UNIT" readonly/> <font color="red"><b>*</b></font></td>
	</tr>
	<tr>
		<td class="td1" width="155">&nbsp;领用数量</td>
		<td> <input name="CK_NUM" title="填写数字, 例如: 1.6" class="box3" type="text" id="CK_NUM" /> <font color="red"><b>*</b></font></td>
	</tr>
	<tr>
		<td class="td1" width="155">&nbsp;单价</td>
		<td> <input name="PRICE" title="填写数字, 例如: 1.6" class="box3" type="text" id="PRICE" readonly/> <font color="red"><b>*</b></font></td>
	</tr>
	<!--  
	<tr>
		<td class="td1" width="154">&nbsp;领用时间</td>
		<td> <input name="CK_DATE" class="box3" type="text" id="CK_DATE" onclick="HS_setDate(this)"/> <font color="red"><b>*</b></font></td>
	</tr>
	-->
	

</table>
</fieldset>
	</form>
</body>
</html>
<script>
    <%if(id.equals("")){%>
         document.getElementById("xz").style.display="";
    
    <%}else{%>
    	 document.getElementById("xz").style.display="none";
    	 document.getElementById("CK_NUM").readOnly=true;
    	 
    	 
    <%}%>
</script>
